package com.fake

import android.view.LayoutInflater
import android.view.ViewGroup
import com.helloandroid.BaseZhuanFragment
import com.helloandroid.R
import com.helloandroid.TaskAdapter
import com.helloandroid.vo.ViewHolder

class FakeTaskAdapter(fragment: BaseZhuanFragment) : TaskAdapter(fragment) {
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
        val rootView = LayoutInflater.from(parent.context).inflate(R.layout.fake_item_task, parent, false)
        return ViewHolder(rootView,
                rootView.findViewById(R.id.ivIcon),
                rootView.findViewById(R.id.tvTitle),
                rootView.findViewById(R.id.tvDesc),
                rootView.findViewById(R.id.tvCoin),
                rootView.findViewById(R.id.tvTargetValue),
                rootView.findViewById(R.id.btn)
        )
    }
}